alert("There has been a problem contacting the Flybox web-site. Please ensure that:" & RETURN & RETURN & "1. You are connected to the Internet." & RETURN & "2. If you are behind a firewall that you have permissions to access the Internet.")
setVariable(sprite(1), "Finished", "T")
go("Finished")
RecNo = 0
else
if (ilk(value(theResult)) = #list) or (ilk(value(theResult)) = #propList) then
end if
cont = 1
repeat while theResult <> EMPTY
EndC = offset("]", theResult)
StartC = offset("[", theResult)
x = chars(theResult, 2, EndC - 1)
strLen = theResult.char.count
theResult = chars(theResult, EndC + 2, strLen)
RecNo = RecNo + 1
setVariable(sprite(1), "Anecdote:DownloadingText", "Adding record " & RecNo)
DGExecute("INSERT INTO Anecdote (Author, EMail, FlyID, Anecdote, UserAnecdote) VALUES (" & x & ", 0)", db)